# Contributor: prspkt <prspkt@protonmail.com>
# Maintainer: prspkt <prspkt@protonmail.com>
pkgname=py3-protego
pkgver=0.3.0
pkgrel=1
pkgdesc="Pure-Python robots.txt parser with support for modern conventions"
url="https://github.com/scrapy/protego"
arch="noarch"
license="BSD-3-Clause"
depends="python3"
makedepends="py3-setuptools"
checkdepends="py3-pytest"
subpackages="$pkgname-pyc"
source="https://files.pythonhosted.org/packages/source/P/Protego/Protego-$pkgver.tar.gz"
builddir="$srcdir/Protego-$pkgver"

build() {
	python3 setup.py build
}

check() {
	PYTHONPATH="$builddir/build/lib/:$PYTHONPATH" python3 -m pytest
}

package() {
	python3 setup.py install --skip-build --root="$pkgdir"
}

sha512sums="
cb1209f93ed5dd6dc91d517107837c780e2138efa7766a9f6d00bd22d7b1904a5db5edb08db83bde34571735245d702db3a5c67970103dc77859bb4c9024e863  Protego-0.3.0.tar.gz
"
